package com.muyu.remote.factory;

import com.muyu.remote.RemoteVipPerson;

import com.muyu.system.domain.DanmoVipRights;
import org.springframework.cloud.openfeign.FallbackFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * vip人员远程调用工厂 RemoteVipPersonFactory
 *
 * @author LeYang
 * on 2025/6/10
 */
public class RemoteVipPersonFactory implements FallbackFactory<RemoteVipPerson> {

    @Override
    public RemoteVipPerson create(Throwable cause) {
        return new RemoteVipPerson() {
            @Override
            public List<DanmoVipRights> getPersonRights(Long userid) {
                return  new ArrayList<>();
            }
        };
    }
}
